#define _CRT_SECURE_NO_WARNINGS
#include"Stack.h"
#include"Queue.h"
void STack() {
	Stack p;
	StackInit(&p);
	StackPush(&p, 1);
	StackPush(&p, 2);
	StackPush(&p, 3);
	StackPush(&p, 4);
	while (StackEmpty(&p)) {
		printf("%d ", StackTop(&p));
		StackPop(&p);
	}
	StackDestroy(&p);
}
void queue() {
	Queue q;
	QueueInit(&q);
	QueuePush(&q, 1);
	QueuePush(&q, 2);
	QueuePush(&q, 3);
	QueuePush(&q, 4);
	QueuePush(&q, 5);
	printf("%d\n", QueueSize(&q));
	while (QueueEmpty(&q)) {
		printf("%d ", QueueFront(&q));
		QueuePop(&q);
	}
}
int main() {
	//STack();
	queue();
}